# _*_ coding: utf-8 _*_
from rest_framework.routers import DefaultRouter
from django.conf.urls import url, include

import views

urlpatterns = [
    url(r'^reg_sms/$', views.UserSms),
    url(r'^register/$', views.UserRegister),
    url(r'^forgotpassword/$', views.UserForgotPassword),
    url(r'^login/$', views.UserLogin.as_view()),
    url(r'^login_info/$', views.UserInfo.as_view()),
    url(r'^login_updatepasswd/$', views.UserUpdatePassword),
    url(r'^logout/$', views.UserLogout),
]

router = DefaultRouter()
router.register(r'region', views.RegionViewSet, base_name='region')
router.register(r'company', views.CompanyViewSet, base_name='company')
router.register(r'job', views.UserJobViewSet, base_name='job')
router.register(r'department', views.DepartmentViewSet, base_name='department')
router.register(r'customer', views.CustomerProfileViewSet, base_name='customer')
urlpatterns += router.urls

#urlpatterns = format_suffix_patterns(urlpatterns)
